package com.example.springbootdatamock.bean;

public class HiveData {
    private String province;
    private String city;
    private Integer perc;

    public void setProvince(String province) {
        this.province = province;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public void setPerc(Integer perc) {
        this.perc = perc;
    }

    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof HiveData)) return false;
        HiveData other = (HiveData) o;
        if (!other.canEqual(this)) return false;
        Object this$perc = getPerc(), other$perc = other.getPerc();
        if ((this$perc == null) ? (other$perc != null) : !this$perc.equals(other$perc)) return false;
        Object this$province = getProvince(), other$province = other.getProvince();
        if ((this$province == null) ? (other$province != null) : !this$province.equals(other$province)) return false;
        Object this$city = getCity(), other$city = other.getCity();
        return !((this$city == null) ? (other$city != null) : !this$city.equals(other$city));
    }

    protected boolean canEqual(Object other) {
        return other instanceof HiveData;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $perc = getPerc();
        result = result * 59 + (($perc == null) ? 43 : $perc.hashCode());
        Object $province = getProvince();
        result = result * 59 + (($province == null) ? 43 : $province.hashCode());
        Object $city = getCity();
        return result * 59 + (($city == null) ? 43 : $city.hashCode());
    }

    public String toString() {
        return "HiveData(province=" + getProvince() + ", city=" + getCity() + ", perc=" + getPerc() + ")";
    }

    public HiveData() {
    }

    public HiveData(String province, String city, Integer perc) {
        this.province = province;
        this.city = city;
        this.perc = perc;
    }

    public String getProvince() {
        return this.province;
    }

    public String getCity() {
        return this.city;
    }

    public Integer getPerc() {
        return this.perc;
    }
}



 